package com.atguigu.gmall.sms.api;

import com.atguigu.gmall.common.bean.ResponseVo;
import com.atguigu.gmall.sms.vo.ItemSaleVo;
import com.atguigu.gmall.sms.vo.SkuSaleVo;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @author Aupt
 * @create 2022-05-20-19:29
 */
public interface GmallSmsApi {


    @PostMapping("sms/skubounds/skusale/save")
    ResponseVo<Object> saveSkuSaleInfo(@RequestBody SkuSaleVo skuSaleVo);


    /**
     * 查询sku的营销信息
     *
     * @param skuId
     * @return
     */
    @GetMapping("sms/skubounds/sku/{skuId}")
    ResponseVo<List<ItemSaleVo>> querySaleBySkuId(@PathVariable("skuId") Long skuId);
}
